import http from "@/utils/http";
const prefixUrl = {
  queryDataById: "/analysis/withdraw/detail", // 不存在的接口 是为了控制详情按钮
  queryWithdrawList: "/analysis/withdraw/list",
  updateRefuse: "/analysis/withdraw/reject",
  updateAgree: "/analysis/withdraw/agree",
  queryWithdrawPlatform: "/analysis/withdraw/get-platform-list",
  quertySearchDicts: "/analysis/withdraw/filter-data",
};
export default {
  role: {
    queryDataById: "POST:" + prefixUrl.queryDataById,
    queryWithdrawList: "POST:" + prefixUrl.queryWithdrawList,
    updateRefuse: "POST:" + prefixUrl.updateRefuse,
    updateAgree: "POST:" + prefixUrl.updateAgree,
    queryWithdrawPlatform: "POST:" + prefixUrl.queryWithdrawPlatform,
    quertySearchDicts: "POST:" + prefixUrl.quertySearchDicts,
  },
  queryWithdrawList(params = {}) {
    return http.post(prefixUrl.queryWithdrawList, params);
  },
  updateRefuse(params = {}) {
    return http.post(prefixUrl.updateRefuse, params);
  },
  updateAgree(params = {}) {
    return http.post(prefixUrl.updateAgree, params);
  },
  queryWithdrawPlatform(params = {}) {
    return http.post(prefixUrl.queryWithdrawPlatform, params);
  },
  quertySearchDicts(params = {}) {
    return http.post(prefixUrl.quertySearchDicts, params);
  },
};
